home *** CD-ROM | disk | FTP | other *** search
/ .net 2002 March / DotNetMagazine-Issue107-Coverdisc-NET107-02-03-PCMac.bin / pc / PC Software / free_browsing / DavesQckSearchDbar3-14 / dqsd.exe / searches / yg.xml < prev    next >
Text File  |  2002-09-20  |  2KB  |  69 lines

  1. <search function="yg">
  2.   <name>Yahoo Groups</name>
  3.   <description>
  4.     Search Yahoo groups for messages or members.
  5.     <div class="helpboxDescLabels">Switches:</div>
  6.     <table class="helpboxDescTable">
  7.       <tr><td>/messages:string</td><td> - </td><td>Search group for messages</td></tr>
  8.       <tr><td>/members:name</td><td> - </td><td>Search group for member names</td></tr>
  9.       <tr><td>/number:message_number</td><td> - </td><td>Go directly to a message number</td></tr>
  10.     </table>
  11.     <div class="helpboxDescLabels">Examples:</div>
  12.     <table class="helpboxDescTable">
  13.       <tr><td>yg wtl /num:610</td></tr>
  14.       <tr><td>yg dqsdd /mes:localpreferences</td></tr>
  15.       <tr><td>yg dqsdd /mem:carr</td></tr>
  16.     </table>
  17.   </description>
  18.   <category>Search the Web</category>
  19.   <link>http://groups.yahoo.com/</link>
  20.   <contributor>Glenn Carr</contributor>
  21.   <form name="ygf" action="http://groups.yahoo.com/rsearch" method="get">
  22.     <input type="hidden" name="type" value="query" />
  23.     <input type="hidden" name="where" value="" />
  24.     <input type="hidden" name="group" value="" />
  25.     <input type="hidden" name="query" value="" />
  26.     <input type="hidden" name="expand" value="1" />
  27.   </form>
  28.   <script><![CDATA[
  29.     function yg(q)
  30.     {
  31.       if( nullArgs("yg", q) )
  32.         return false;
  33.  
  34.       var args = parseArgs(q, "messages, members, number");
  35.       if( args.switches.length >= 1 )
  36.       {
  37.         document.ygf.query.value = args.switches[0].value;
  38.         switch( args.switches[0].name )
  39.         {
  40.           case "messages":
  41.             document.ygf.where.value = "/group/" + args.q + "/messagesearch";
  42.             submitForm(ygf);
  43.             break;
  44.           case "members":
  45.             document.ygf.where.value = "/group/" + args.q + "/members";
  46.             document.ygf.group.value = "sub";
  47.             submitForm(ygf);
  48.             break;
  49.           case "number":
  50.             openSearchWindow("http://groups.yahoo.com/group/" + args.q + "/message/" + args.switch_val["number"]);
  51.             break;
  52.           default:
  53.             openSearchWindow("http://groups.yahoo.com/");
  54.         }
  55.       }
  56.       else
  57.       {
  58.         openSearchWindow("http://groups.yahoo.com/group/" + args.q );
  59.       }
  60.     }
  61.   ]]></script>
  62.  
  63.   <copyright>
  64.     Copyright (c) 2002 David Bau
  65.     Distributed under the terms of the
  66.     GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
  67.   </copyright>
  68. </search>
  69.